package com.chiv.gateway.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
public class FallbackController {
    @RequestMapping("/fallback")
    public Map fallback(){
        Map<String,String> failResult  = new HashMap<>();
        failResult.put("msg","路由熔断了，服务降级！");
        return failResult;
    }
}
